package com.ljw.servlet_springMVC.annotation.conf;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @FileName RootConfig
 * @Description TODO 根web容器的配置类
 * @Author ljw
 * @Date 2021/2/5 14:24
 * @Version 1.0
 */
//根web容器(即spring容器)不扫描controller层，只负责service层和dao层，排除扫描@Controller注解
@Configuration
@ComponentScan(basePackages = {"com.ljw.servlet_springMVC.annotation"},excludeFilters = {
        @ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {Controller.class})
})
public class RootConfig {
}
